import Field from 'winged/utils/wt-model-field'
import Code from '../utils/Code'
import times from '../../../Resources/utils/wt-time-utils'
export default {
	title:"评估表列表",
	name:'Service',
	tableName:'service_composes',
	query: {
		method: 'DRONE',
		url: 'evaluation/consulting/get_service_compose_list',
		transfer: true,
		pagination: true,
		// // 在修改的时候需要进行单条记录查询，用于获取关联麻醉记录
		// getOnEdit: true
		countParam:'total_num',
		extraParams: ['patient_id'],
	},
	fields:[
		{
			label:"评估表编号",
			type:Field.types.text,
			display:true,
			name: 'current_order_id',
			tableName: 'current_order_id',
			minWidth:'130px',

	},{
			label:"评估表状态",
			type:Field.types.text,
			display:true,
			name:'service_status',
			tableName: 'service_status',
			minWidth:'150px',
			builder:function (data) {
				data[this.tableName] = Code.parse(data).text
			}

		},{
			label:"病种",
			type:Field.types.text,
			display:true,
			name:'ill_label_name',
			minWidth:100,
			tableName: 'ill_label_name',

		},{
			label: '创建时间',
			type: Field.types.text,
			saveAsJson: true,
			display: true,
			summary: true,
			allowUpload:false,
			uploadByComponent: true,
			minWidth : 130,
			preSubmit: true,
			name: 'create_date',
			tableName: 'create_date',
			builder:function(data){
				data[this.tableName] = times.format(data[this.tableName])
			}
		}]
}